package com.atguigu.gmall.activity.service;

import com.atguigu.gmall.model.cart.CarInfoVo;
import com.atguigu.gmall.model.cart.CartInfo;
import com.atguigu.gmall.model.order.OrderDetail;
import com.atguigu.gmall.model.order.OrderTradeVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface ActivityService  {
    /**
     * 根据skuId获取促销与优惠券信息
     * @param skuId
     * @param userId
     * @return
     */
    Map<String, Object> findActivityAndCoupon(Long skuId, Long userId);


    List<CarInfoVo> findCartActivityAndCoupon(List<CartInfo> cartInfoList, Long userId);

    OrderTradeVo findTradeActivityAndCoupon(List<OrderDetail> orderDetailList, Long userId);
}
